import { ref } from 'vue'
import { findHot } from '@/api/home'

export function dataFn () {
  const data = ref([])
  async function getdata () {
    const res = await findHot()
    data.value = res.data.result
  }
  getdata()
  return {
    data
  }
}
